﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Production_Modules
{
    /// <summary>
    /// 物料采购单
    /// </summary>
    [Table("purchaseorderinfo")]
    public class PurchaseOrderModel:AuditEntity
    {
        /// <summary>
        /// 采购单单号
        /// </summary>
        public string PurchaseOrderCode { get; set; }
        /// <summary>
        /// 采购数量
        /// </summary>
        public long PurchaseOrderCount { get; set; }
        /// <summary>
        /// 采购物料名称
        /// </summary>
        public string ProductMaterialsName { get; set; }
        /// <summary>
        /// 期望到货时间
        /// </summary>
        public DateTime OverTime { get; set; }
        /// <summary>
        /// 采购物料描述
        /// </summary>
        public string PurchaseOrderDesc { get; set; }
        /// <summary>
        /// 采购状态（0：待审核，1：进行中，2：已完成，3：已驳回）
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 供应商外键
        /// </summary>
        public long VendorId { get; set; }
        /// <summary>
        /// 入库物料外键
        /// </summary>
        public long ProductMaterialsId { get; set; }
    }
}
